#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time    : 2021/11/9 1:45 上午
# @Author  : WangZhixing

#将num:num 转换为contain cluster name 的rsf文件

def dic2rsf(dic, rsf):
    with open(rsf, 'w') as f:
        for key in dic:
            f.write("contain" + " " + str(dic[key]) + " " + key + '\n')